//***************************************************************
//  File:    GameObject.h
//  Date:    12/17/2012
//  Author:  liangxc (liangxc2010@gmail.com)
//-------------------------------------------------------------
//
//-------------------------------------------------------------
//  This file is part of Hare2D Game Engine.
//  Copyright (C) All Rights Reserved
//***************************************************************
//
//***************************************************************
#ifndef __COMPONENT_H__
#define __COMPONENT_H__

namespace hare
{
	class GRAPHICS_API Component : public Object
	{
		HARE_DECLARE_ABSTRACT_CLASS(Component)
	public:
		Component();
		virtual ~Component();

		virtual void update(){};
		virtual void render(PointF pos, PointF rotation, PointF scale){};

		bool getEnable();
		void setEnable(bool flag);

	protected:
		bool enable;
	};
}

#endif